package com.pcjavanet.collect.mes.util;

public class SystemConstant {
	
	public static final String YES = "Y";
	public static final String NO = "N";
	
	//10000000
	public static final String SUM_NUMBER_INIT_VALUE = "10000000";
	
	//common parameters
	public static final String AUTO_CALCULATION_BAR = "AUTO_CALCULATION_BAR";	
	public static final String INTERVAL_OF_BAR_CALCULATION = "INTERVAL_OF_BAR_CALCULATION";	
	public static final String RULE1 = "RULE1";	
	public static final String RULE2 = "RULE2";	
	public static final String RULE3 = "RULE3";	
	public static final String RULE4 = "RULE4";	
	public static final String RULE5 = "RULE5";	
	public static final String RULE6 = "RULE6";	
	public static final String RULE7 = "RULE7";	
	public static final String RULE4_NUMBER_OF_POINT = "RULE4_NUMBER_OF_POINT";
	public static final String RULE5_NUMBER_OF_POINT = "RULE5_NUMBER_OF_POINT";
	public static final String RULE6_NUMBER_OF_POINT = "RULE6_NUMBER_OF_POINT";
	public static final String RULE7_NUMBER_OF_POINT = "RULE7_NUMBER_OF_POINT";
	public static final String SEND_EMAIL = "SEND_EMAIL";	
	public static final String TURN_TO_RED = "TURN_TO_RED";
	public static final String SEND_MFG_HOLD = "SEND_MFG_HOLD";
	public static final String SEND_MFG_HOLD_MINUTES = "SEND_MFG_HOLD_MINUTES";

	// monitor detail parameters
	public static final String SELECTED = "SELECTED";	
	public static final String BAR = "-BAR";	
	
	// monitor status
	public static final String MONITOR_STATUS_DISABLE = "-1";
	public static final String MONITOR_STATUS_STOP = "0";
	public static final String MONITOR_STATUS_RUNNING = "1";
	public static final String MONITOR_STATUS_MANUAL = "2";
	
	// monitor type
	public static final String MONITOR_TYPE_WORKSTATION = "0";
	public static final String MONITOR_TYPE_PROCESS = "1";
	public static final String MONITOR_TYPE_LOCATION_FAMILY = "2";
	public static final String MONITOR_TYPE_WORKSTATION_CONTENT = "Location";
	public static final String MONITOR_TYPE_PROCESS_CONTENT = "Process";
	public static final String MONITOR_TYPE_LOCATION_FAMILY_CONTENT = "Location Family";
	
	// monitor part type
	public static final String MONITOR_PART_NUMBER= "0";
	public static final String MONITOR_PART_FAMILY_ID= "1";
	public static final String MONITOR_PART_NUMBER_CONTENT= "Part Number";
	public static final String MONITOR_FAMILY_ID_CONTENT= "Family ID";
	
	// monitor group type
	public static final String MONITOR_GROUP_TYPE_BY_TIME= "1";
	public static final String MONITOR_GROUP_TYPE_BY_BATCH= "-1";
	public static final String MONITOR_GROUP_TYPE_BY_UNIT= "0";
	public static final String MONITOR_GROUP_TYPE_BY_TIME_NAME= "Time";
	public static final String MONITOR_GROUP_TYPE_BY_BATCH_NAME= "SFDC batch";
	public static final String MONITOR_GROUP_TYPE_BY_UNIT_NAME= "Unit quantity";
	public static final String MONITOR_GROUP_TYPE_BY_ATTRIBUTE_NAME= "Attribute";
	
	// monitor data source 
	public static final String MONITOR_DATA_SOURCE_BY_MANUAL= "0";
	public static final String MONITOR_DATA_SOURCE_BY_SFDC= "1";
	public static final String MONITOR_DATA_SOURCE_BY_SPI= "2";
	public static final String MONITOR_DATA_SOURCE_BY_MDS= "3";
	public static final String MONITOR_DATA_SOURCE_TYPE_MDS= "MDS";
	// page parameters
	public static final String PAGE_START= "0";
	public static final String PAGE_LIMIT= "10";
	
	public static final String BATH_MONITOR_FLAG = "*BATCH*";
	
	// chart type
	public static final String CHART_TYPE_X = "X";
	public static final String CHART_TYPE_R = "R";
	public static final String CHART_TYPE_I= "I";
	public static final String CHART_TYPE_MR = "MR";
	public static final String CHART_TYPE_P = "P";
	public static final String CHART_TYPE_NP = "NP";
	public static final String CHART_TYPE_U = "U";
	public static final String CHART_TYPE_C = "C";
	public static final String CHART_TYPE_DPMO = "DPMO";
	public static final String CHART_TYPE_CPK = "Cpk/Ppk";
	public static final String CHART_TYPE_X_R = "X,R";
	public static final String CHART_TYPE_I_MR = "I,MR";
	public static final String CHART_TYPE_XBar_R = "XBar-R";
	public static final String CHART_TYPE_IMR = "I-MR";
	public static final String CHART_TYPE_YIELD = "Yield";
	public static final String CHART_TYPE_PARETO = "Pareto";
	public static final String CHART_TYPE_FPY = "FPY";
	public static final String CHART_BAR_FPY = "FPY-BAR";
	public static final String CHART_BAR_R = "R-BAR";
	public static final String CHART_PARAMETER_CPK = "CPK";
	public static final String CHART_PARAMETER_PPK = "PPK";
	public static final String CHART_PARAMETER_USL = "USL";
	public static final String CHART_PARAMETER_LSL = "LSL";
	public static final String CHART_PARAMETER_UCL = "UCL";
	public static final String CHART_PARAMETER_DEFECT_OPPORTUNITY = "DEFECT-OPPORTUNITY";
	public static final String CHART_PARAMETER_LIMIT = "LIMIT";
	public static final String CHART_PARAMETER_TARGET = "TARGET";
	public static final String CHART_PARAMETER_DISPLAY = "DISPLAY";
	public static final String CHART_PARAMETER_TRIGGER = "TRIGGER";
	public static final String HOLD_PARETO_CHART = "HOLD_PARETO_CHART";
	public static final String HOLD_DEFECT_NUMBER = "HOLD_DEFECT_NUMBER";
	public static final String HOLD_TIME = "HOLD_TIME";
	public static final String CHART_PARAMETER_DATA_RANGE = "DATA_RANGE";
	public static final String CHART_PARAMETER_ALL_DATA = "All Data";
	public static final String CHART_PARAMETER_Month = "Month";
	public static final String CHART_PARAMETER_Quarter = "Quarter";
	
	// continuous group type 
	public static final String CONTINUOUS_GROUP_TYPE_BY_TIME= "1";
	public static final String CONTINUOUS_GROUP_TYPE_BY_LOT= "2";
	
	// data input user
	public static final String BACKGROUND_JOB= "Background job";
	
	
	// data type
	public static final String CONTINUOUS_DATA_TYPE= "0";
	public static final String DISCRETE_DATA_TYPE= "1";
	
	// data status
	public static final String DATA_STATUS_DISABLE = "-1";
	public static final int DATA_STATUS_HIDDEN = -2;
	public static final String DATA_STATUS_ENABLE = "0";
	
	// rule command
	public static final String RULE_ONE_COMMAND_EXCEPTION_MESSAGE= "One point beyond the 3 sigma control limit.";
	public static final String RULE_TWO_COMMAND_EXCEPTION_MESSAGE= "Two out of three consecutive points plot outside of the 2 sigma control limit.";
	public static final String RULE_THREE_COMMAND_EXCEPTION_MESSAGE= "Four out of five consecutive points plot outside of the 1 sigma control limit.";
	public static final String RULE_FOUR_COMMAND_EXCEPTION_MESSAGE= " consecutive points on the same side of the centerline.";
	public static final String RULE_FIVE_COMMAND_EXCEPTION_MESSAGE= " consecutive points increase or decrease.";
	public static final String RULE_SIX_COMMAND_EXCEPTION_MESSAGE= " consecutive points oscillate up and down.";
	public static final String RULE_SEVEN_COMMAND_EXCEPTION_MESSAGE= " consecutive points inside of the 1 sigma control limit.";
	public static final String RULE_ONE_COMMAND_GRAPH_TITLE_MESSAGE= "One point beyond the 3 sigma control limit, please contact the administrator.";
	public static final String RULE_TWO_COMMAND_GRAPH_TITLE_MESSAGE= "Two out of three consecutive points plot outside of the 2 sigma control limit, please contact the administrator.";
	public static final String RULE_THREE_COMMAND_GRAPH_TITLE_MESSAGE= "Four out of five consecutive points plot outside of the 1 sigma control limit, please contact the administrator.";
	public static final String RULE_FOUR_COMMAND_GRAPH_TITLE_MESSAGE= " consecutive points on the same side of the centerline, please contact the administrator.";
	public static final String RULE_FIVE_COMMAND_GRAPH_TITLE_MESSAGE= " consecutive points increase or decrease, please contact the administrator.";
	public static final String RULE_SIX_COMMAND_GRAPH_TITLE_MESSAGE= " consecutive points oscillate up and down, please contact the administrator.";
	public static final String RULE_SEVEN_COMMAND_GRAPH_TITLE_MESSAGE= " consecutive points inside of the 1 sigma control limit, please contact the administrator.";
	
	public static final String MESSAGE_CPKPPK__EXCEPTION_ALTER= "Cpk or Ppk value is lower than configured limits.";
	public static final String MESSAGE_CPKPPK_ALERT= "Cpk or Ppk value is lower than configured limits, please contact the administrator.";
	public static final String DPMO_EXCEPTION_MESSAGE= "Dpmo beyond line stop criteria.";
	public static final String YIELD_EXCEPTION_MESSAGE= "Yield value lower than configured limits.";
	public static final String FPY_EXCEPTION_MESSAGE= "FPY value lower than configured target limits.";
	public static final String FPY_GRAPH_TITLE_MESSAGE= "FPY value lower than configured target limits, please contact the administrator.";
	
	// log method name
	public static final String LOG_METHOD_ADD_MONITOR= "addMonitor";
	
	// log operation
	public static final String LOG_OPERATION_ADD_MONITOR= "Create monitor";
	public static final String LOG_OPERATION_EDIT_MONITOR= "Edit monitor";
	public static final String LOG_OPERATION_DELETE_MONITOR= "Delete monitor";
	public static final String LOG_OPERATION_DISABLE_MONITOR= "Disable monitor";
	public static final String LOG_OPERATION_ENABLE_MONITOR= "Enable monitor";
	public static final String LOG_OPERATION_START_MONITOR= "Start monitor";
	public static final String LOG_OPERATION_STOP_MONITOR= "Stop monitor";
	public static final String LOG_OPERATION_EDIT_MONITOR_DETAIL= "Edit monitor";
	public static final String LOG_OPERATION_UPDATE_BAR_VALUE= "Update bar value";
	public static final String LOG_OPERATION_AUTOMATICALLY_UPDATE_BAR_VALUE= "Automatically update bar value";
	public static final String LOG_OPERATION_MANUALLY_COLLECT_DATA= "Manually collect data";
	public static final String LOG_OPERATION_AUTOMATICALLY_COLLECT_DATA= "Automatically collect data";
	public static final String LOG_OPERATION_INPUT_OCAP= "Input OCAP";
	public static final String LOG_OPERATION_EDIT_OCAP= "Edit OCAP";
	public static final String LOG_OPERATION_SEND_ALERT_EMAIL= "Send alert email";
	public static final String LOG_OPERATION_SEND_ALERT_EMAIL_FAIL= "Send alert email fail";
	public static final String LOG_OPERATION_MODIFY_LATEST_RECORD= "Modify latest record";
	public static final String LOG_OPERATION_DISABLE_DATA= "Disable data";
	public static final String LOG_OPERATION_ENABLE_DATA= "Enable data";
	public static final String LOG_OPERATION_DISABLE_LOCATION_FAMILY= "Disable location family";
	public static final String LOG_OPERATION_ENABLE_LOCATION_FAMILY= "Enable location family";
	public static final String LOG_OPERATION_DELETE_LOCATION_FAMILY= "Delete location family";
	public static final String LOG_OPERATION_ADD_LOCATION_FAMILY= "Add location family";
	public static final String LOG_OPERATION_EDIT_LOCATION_FAMILY= "Edit location family";
	public static final String LOG_OPERATION_MODIFY_SYSTEM_CONFIGURATION= "Modify system configurations";
	public static final String LOG_OPERATION_MODIFY_GLOBAL_SYSTEM_CONFIGURATION= "Modify global system configurations";
	
	// log status
	public static final String LOG_STATUS_AVAILABLE= "0";
	public static final int LOG_STATUS_INFO= 1;
	public static final int LOG_STATUS_ERROR= 2;
	
	// log user name
	public static final String GUEST= "guest";
	
	// location family status
	public static final String LOCATION_FAMILY_STATUS_DISABLE = "-1";
	public static final String LOCATION_FAMILY_STATUS_ENABLE = "0";
	
	// system parameter
	public static final String SYSTEM_PARAMETER_ALL = "ALL";
	public static final String NUMBER_OF_ACTIVE_THREAD = "NUMBER_OF_ACTIVE_THREAD";	
	public static final String NUMBER_OF_RUNNING_MONITOR = "NUMBER_OF_RUNNING_MONITOR";	
	public static final String INTERVAL_OF_COLLECTION_DATA = "INTERVAL_OF_COLLECTION_DATA";	
	public static final String INTERVAL_OF_DELETING_LOG = "INTERVAL_OF_DELETING_LOG";	
	public static final String TIME_OF_LOG_BEING_SAVED = "TIME_OF_LOG_BEING_SAVED";	
	public static final String START_TIME_OF_DATA_COLLECTION = "START_TIME_OF_DATA_COLLECTION";	
	public static final String INTERVAL_BETWEEN_LOCK_REVIEWS = "INTERVAL_BETWEEN_LOCK_REVIEWS";
	public static final String DISPLAY_PART_FAMILY = "DISPLAY_PART_FAMILY";
	public static final String TIME_OF_ACTIVE_MONITOR = "TIME_OF_ACTIVE_MONITOR";
	public static final String DISABLE_MONITOR = "DISABLE_MONITOR";
	public static final String IS_DISABLE_MONITOR = "IS_DISABLE_MONITOR";
	public static final String IS_DISABLE_PREVIOUS_HOLD = "IS_DISABLE_PREVIOUS_HOLD";
	
	// view graph type
	public static final String VIEW_GRAPH_BY_POINT = "0";
	public static final String VIEW_GRAPH_BY_DATE = "1";
	
	// hold status
	public static final String HOLD_STATUS_WAITING = "1";
	public static final String HOLD_STATUS_LOCKED = "2";
	public static final String HOLD_STATUS_UNLOCKED = "3";
	
	public static final String SERVER_INFO_STATUS_DELETE = "-1";
	public static final String SERVER_INFO_STATUS_UNDELETE = "1";
	
	public static final String SPC_THREAD_NAME = "SPC_THREAD" ;
	
	public static final int FOURTEEN = 14 ;
	
	public static boolean COMPATIBLE_MODEL = true ;
}
